package com.sdry.mapper.zc;

import java.util.List;

import com.sdry.model.zc.ZcInspectionEntity;
import com.sdry.model.zc.ZcParetsTestEntity;
import com.sdry.model.zc.ZcQueryCriteria;
import com.sdry.model.zc.ZcTestDetailsEntity;
import com.sdry.model.zc.ZcTestEntity;

/**
 * 
 * @ClassName:    ZcTestMapper   
 * @Description:  生产配件检验
 * @Author:       zc   
 * @CreateDate:   2018年9月27日 上午10:13:54   
 * @Version:      v1.0
 */
public interface ZcTestMapper {
	/**
	 * 查询报检单列表
	 * @param zqc
	 * @return
	 */
	public List<ZcInspectionEntity> selectInspectionList();
	/**
	 * 查询报检单
	 * @param zqc
	 * @return
	 */
	public ZcInspectionEntity selectInspection(ZcQueryCriteria zqc);
	/**
	 * 保存检验单
	 * @param zcTestDetailsEntity
	 * @return
	 */
	public int insertParetsTest(ZcParetsTestEntity zcParetsTestEntity);
	/**
	 * 保存检验单详情
	 * @param zcTestDetailsEntity
	 * @return
	 */
	public int insertTestDetails(ZcTestDetailsEntity zcTestDetailsEntity);
	/**
	 * 保存质检单(待处置单)
	 * @param zcTestEntity
	 * @return
	 */
	public int insertTest(ZcTestEntity zcTestEntity);
	/**
	 * 通过日期查找检验记录
	 * @param zcQueryCriteria
	 * @return
	 */
	public List<ZcParetsTestEntity> selectTestLogList(ZcQueryCriteria zcQueryCriteria);
	/**
	 * 通过日期查找检验记录数目
	 * @param zcQueryCriteria
	 * @return
	 */
	public int countTestLogList(ZcQueryCriteria zcQueryCriteria);
	/**
	 * 通过配件检验单号查询检测详情
	 * @param zcQueryCriteria
	 * @return
	 */
	public List<ZcTestDetailsEntity> selectTestLogDetailsList(ZcQueryCriteria zcQueryCriteria);
	/**
	 * 通过配件检验单号查询检测详情数目
	 * @param zcQueryCriteria
	 * @return
	 */
	public int countTestLogDetailsList(ZcQueryCriteria zcQueryCriteria);
}
